﻿<UserControl x:Class="Sautom.Modules.Report.Controls.OrderQueryBuilder"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:res="clr-namespace:Sautom.I18N;assembly=Sautom.I18N" mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <StackPanel>

        <Label Content="{Binding Source={x:Static res:ReportResources.StartDateLabel}}" />
        <DatePicker SelectedDate="{Binding StartDate, UpdateSourceTrigger=PropertyChanged}" DisplayDateEnd="{Binding EndDate}"  />

        <Label Content="{Binding Source={x:Static res:ReportResources.EndDateLabel}}" />
        <DatePicker SelectedDate="{Binding EndDate, UpdateSourceTrigger=PropertyChanged}" DisplayDateStart="{Binding StartDate}" />

        <Label Content="{Binding Source={x:Static res:ReportResources.ClientNameLabel}}" />
        <TextBox Text="{Binding ClientName}" />

        <Label Content="{Binding Source={x:Static res:ReportResources.SchoolNameLabel}}" />
        <TextBox Text="{Binding SchoolName}" />

        <Label Content="{Binding Source={x:Static res:ReportResources.CourceNameLabel}}" />
        <TextBox Text="{Binding CourceName}" />

        <Button Command="{Binding DoSearch}" Content="{Binding Source={x:Static res:ReportResources.ProccessBtn}}" />
    </StackPanel>
</UserControl>
